import axios from '@/libs/api.request'

export const upload = ({ userName, password }) => {
  const data = {
    userName,
    password
  }
  return axios.request({
    url: 'login',
    data,
    method: 'post'
  })
}

export const table = (token) => {
  return axios.request({
    url: 'get_info',
    params: {
      token
    },
    method: 'get'
  })
}

export const tableExpand = (token) => {
  return axios.request({
    url: 'logout',
    method: 'post'
  })
}

export const tableOrigin = () => {
  return axios.request({
    url: 'message/count',
    method: 'get'
  })
}

export const getDynamicCircle = (params) => {
  return axios.request({
    url: 'test/mock?action=dyc',
    method: 'get'
  })
}
